﻿using System;
using System.Windows.Forms;
using KillBill.Common.Security;
using KillBill.Presentation.Common.WindowsForms.View;
using KillBill.Presentation.Shell.IView;
using KillBill.Presentation.Shell.Presenter;
//using Session = KillBill.Presentation.Modules.Administration.SecurityServiceReference.Session;

namespace KillBill.Presentation.Shell.View
{
    public partial class LogInView : KillBillWinFormView, ILogIn
    {
        public LogInView()
        {
            this.InitializeComponent();
            Presenter = new LogInPresenter(this);
            Id = "1717966194";
            Password = "heredia";
        }
        #region ILogIn Members
        public LogInPresenter Presenter { get; set; }

        public string Id
        {
            get
            {
                return this.txbxId.Text;
            }
            set
            {
                txbxId.Text = value;
            }
        }
        public string Password
        {
            get
            {
                return txBxPassWord.Text;
            }
            set
            {
                txBxPassWord.Text = value;
            }
        }

        #endregion

        private void btnAcept_Click(object sender, EventArgs e)
        {
            Presenter.Autenticate();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            Close();
        }



    }
}
